package com.example.sqlexport.service;

import com.example.sqlexport.entity.DatabaseConfig;
import com.example.sqlexport.entity.SqlExportRequest;

import java.util.List;
import java.util.Map;

public interface SqlExportService {
    String exportSql(Long databaseConfigId, String tableName, String whereClause);
    List<Map<String, Object>> getTableColumns(Long databaseConfigId, String tableName);
    List<String> getTableNames(DatabaseConfig config);
    
    List<Map<String, Object>> previewData(SqlExportRequest request);
} 